﻿namespace Jim.K3Cloud;

/// <summary>
/// 登录结果
/// </summary>
public class K3CloudLoginData
{
    /// <summary>
    /// 登录消息
    /// </summary>
    public string Message { get; set; }
    /// <summary>
    /// 登录消息编码
    /// </summary>
    public string MessageCode { get; set; }
    /// <summary>
    /// 登录结果
    /// 1为登录成功
    /// </summary>
    public int LoginResultType { get; set; }
    /// <summary>
    /// 会话
    /// </summary>
    public string KDSVCSessionId { get; set; }
    /// <summary>
    /// 表单Id
    /// </summary>
    public string FormId { get; set; }
    /// <summary>
    /// 跳转参数
    /// </summary>
    public string RedirectFormParam { get; set; }
    /// <summary>
    /// 输入参数
    /// </summary>
    public string FormInputObject { get; set; }
    /// <summary>
    /// 错误堆栈
    /// </summary>
    public string ErrorStackTrace { get; set; }
    /// <summary>
    /// 多语言
    /// </summary>
    public int Lcid { get; set; }
    /// <summary>
    /// 授权
    /// </summary>
    public string AccessToken { get; set; }
    /// <summary>
    /// 登录结果
    /// </summary>
    public string KdAccessResult { get; set; }
    /// <summary>
    /// 是否Api登录
    /// </summary>
    public bool IsSuccessByAPI { get; set; }

    /// <summary>
    /// 登录上下文
    /// </summary>
    public K3CloudLoginContext Context { get; set; }

}

/// <summary>
/// 登录上下文
/// </summary>
public class K3CloudLoginContext
{
    /// <summary>
    /// 用户语言
    /// </summary>
    public string UserLocale { get; set; }
    /// <summary>
    /// 日志语言
    /// </summary>
    public string LogLocale { get; set; }
    /// <summary>
    /// 账套
    /// </summary>
    public string DBid { get; set; }
    /// <summary>
    /// 数据库类型
    /// </summary>
    public int DatabaseType { get; set; }
    /// <summary>
    /// 会话
    /// </summary>
    public string SessionId { get; set; }
    /// <summary>
    /// 用户Id
    /// </summary>
    public int UserId { get; set; }
    /// <summary>
    /// 用户名
    /// </summary>
    public string UserName { get; set; }
    /// <summary>
    /// 客户名称
    /// </summary>
    public string CustomName { get; set; }
    /// <summary>
    /// 显示版本
    /// </summary>
    public string DisplayVersion { get; set; }
    /// <summary>
    /// 是否教育版
    /// </summary>
    public int ProductEdition { get; set; }
    /// <summary>
    /// 数据中心编码
    /// </summary>
    public string DataCenterNumber { get; set; }
    /// <summary>
    /// 数据中心名称
    /// </summary>
    public string DataCenterName { get; set; }
    /// <summary>
    /// 用户授权
    /// </summary>
    public string UserToken { get; set; }
    public bool IsCH_ZH_AutoTrans { get; set; }
    /// <summary>
    /// 客户端类型
    /// </summary>
    public int ClientType { get; set; }
    public string GDCID { get; set; }
    public string Gsid { get; set; }
    /// <summary>
    /// TR等级
    /// </summary>
    public int TRLevel { get; set; }
    /// <summary>
    /// 产品编号
    /// </summary>
    /// <summary>
    /// 上下文结果
    /// </summary>
    public int ContextResultType { get; set; }
    /// <summary>
    /// 租户信息
    /// </summary>
    public string TenantId { get; set; }
    /// <summary>
    /// 是否公有云
    /// </summary>
    public bool IsDeployAsPublicCloud { get; set; }
    /// <summary>
    /// 当前组织信息
    /// </summary>
    public K3CloudOrganizationInfo CurrentOrganizationInfo { get; set; }

}


